package com.wys.aip.controller;

import com.wys.aip.service.FaceContrastService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 韦云师
 * @date 2020/8/22 14:04
 */
@RestController
@RequestMapping("/api/face")
public class FaceContrastController {
    @Autowired
    private FaceContrastService faceContrastService;
    @RequestMapping(value = "/contrast",method = RequestMethod.POST)
    public String getContrastResult(String type, String parameter1,String parameter2) {
        return faceContrastService.getContrastResult(type,parameter1,parameter2);
    }
    @RequestMapping(value = "/batchComparison",method = RequestMethod.GET)
    public String batchComparison(@RequestParam(required = true) String path) {
        return faceContrastService.batchComparison(path);
    }
}
